/*    */ package com.feeyin.radar.sys.dao;
/*    */ 
/*    */ import com.feeyin.radar.crm.dao.ContractDAO;
/*    */ import java.io.PrintStream;
/*    */ import java.util.ArrayList;
/*    */ import java.util.List;
/*    */ import org.springframework.beans.factory.BeanFactory;
/*    */ import org.springframework.context.support.ClassPathXmlApplicationContext;
/*    */ 
/*    */ public class TestContractDAO
/*    */ {
/*    */   public static void main(String[] args)
/*    */   {
/* 21 */     ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(
/* 22 */       new String[] { "context/applicationContext.xml" });
/* 23 */     BeanFactory factory = appContext;
/*    */ 
/* 25 */     ContractDAO contractDAO = (ContractDAO)factory.getBean("contractDAO");
/*    */ 
/* 28 */     List contracts = new ArrayList();
/*    */ 
/* 35 */     contracts = contractDAO.getAllContracts();
/* 36 */     System.out.println(contracts.size() + "-------------");
/*    */   }
/*    */ }

/* Location:           C:\Users\e547415\MyProject\rone\WEB-INF\classes\
 * Qualified Name:     com.feeyin.radar.sys.dao.TestContractDAO
 * JD-Core Version:    0.6.0
 */